package com.lzy.pattern.prototype;

import lombok.Data;

/**
 * @ClassName: RealizeType
 * @Description: TODO
 * @Author: LiuZy
 * @Date: 2022/4/17 20:10
 * @Version: 1.0
 */
@Data
public class RealizeType implements Cloneable{

    public RealizeType(){
        System.out.println("构造方法创建对象。");
    }

    @Override
    protected RealizeType clone() throws CloneNotSupportedException {
        System.out.println("具体原型复制成功。");
        return (RealizeType)super.clone();
    }
}